package com.qingcloud.adminbackend.entity.equipment;

import com.google.common.base.Objects;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class ModelDTO {

    @ApiModelProperty(value = "编号")
    private String modelId;

    @ApiModelProperty(value = "产品类型")
    private String productType;

    @ApiModelProperty(value = "产品类型")
    private String showValue;

    @ApiModelProperty(value = "是否设备管理权限(0无，1有)", example = "1")
    private int manageAuth;

    @ApiModelProperty(value = "是否设备读权限(0无，1有)", example = "1")
    private int readAuth;

    @ApiModelProperty(value = "是否设备池(0无，1有)")
    private int ispool;

    @ApiModelProperty(value = "系统业务类型（2：健康空气，1：网格化）")
    private int workType;

    @ApiModelProperty(value = "位置ID")
    private transient String moId;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ModelDTO modelDTO = (ModelDTO) o;
        return Objects.equal(modelId, modelDTO.modelId);
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(modelId);
    }
}
